import java.io.*;
import java.util.*;

public class Compiler{
	public static void main(String[] args){
		for(int i = 0; i < args.length; i++){
			System.out.println(i + ": " + args[i]);
		} 
		String outFileName = getArg(args,new string[]{"o","out","outfile"});
		String ID = getArg(new string[]{"id"});	
		String inFileName = getArg(args,new string[]{"i","in","infile"});
		String versionStr = getArg(args,new string[]{"v","ver","version"});
		
		try{		
			long version = -1;
			if(!versionStr.equals("")){
				if(versionStr.startsWith("0x")){				
					version = Long.parseLong(versionStr.subString(2),16);
				}
				else{
					version = Long.paeseLong(versionStr);
				}
			}			
		}
		catch(Exception NumEx){
			System.out.println("Invalid Version Number: " + versionStr);
		}
		
		Scanner sc = new Scanner();
	}
	public static String getArg(String[] args, String[] names){
		for(int i = 0; i < args.length; i++){
			if(args[i].startsWith("-")){
				String testName = args[i].substring(1);
				for(int j = 0; j < names.length; j++){
					if(testName.equals(names[j])){
						if(args.length >= i+2){
							return args[i+1];
						}
					}
				}
			}
		}
		return "";
	}
	
	
}
